class ObjPersonInfo {
  int bindedType;
  String floorNo;
  int iconId;
  int id;
  double lat;
  double lng;
  String name;
  String sn;

  ObjPersonInfo(
      {this.bindedType,
      this.floorNo,
      this.iconId,
      this.id,
      this.lat,
      this.lng,
      this.name,
      this.sn});

  factory ObjPersonInfo.fromJson(Map<String, dynamic> json) {
    return ObjPersonInfo(
      bindedType: json['bindedType'],
      floorNo: json['floorNo'],
      iconId: json['iconId'],
      id: json['id'],
      lat: json['lat'],
      lng: json['lng'],
      name: json['name'],
      sn: json['sn'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['bindedType'] = this.bindedType;
    data['floorNo'] = this.floorNo;
    data['iconId'] = this.iconId;
    data['id'] = this.id;
    data['lat'] = this.lat;
    data['lng'] = this.lng;
    data['name'] = this.name;
    data['sn'] = this.sn;
    return data;
  }
}
